﻿using System.Data.Entity;

namespace dPet.Infrastructure.EntityFramework.Bootstrapper
{
	using dPet.Infrastructure.EntityFramework.Migrations;
	using Hangerd.Bootstrapper;
	using Microsoft.Practices.Unity;

    public class InitServiceTask : InitServiceBootstrapperTask
    {
        public InitServiceTask(IUnityContainer container) : base(container) { }

		public override void Execute()
		{
			Database.SetInitializer(new MigrateDatabaseToLatestVersion<DPetUnitOfWork, Configuration>());
		}
    }
}
